package com.uzai.console.service.feign;

import com.uzai.console.common.UzaiRespVo;
import com.uzai.console.dto.feign.ksorder.*;
import com.uzai.console.service.feign.impl.KsOrderFeignFallbackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @Auther: jianghan
 * @Date: 2021/11/24 16:22
 * @Description:
 */
@Component
@FeignClient(value = "uzai-order-server", fallbackFactory = KsOrderFeignFallbackFactory.class)
public interface KsOrderFeignService {

    /**
     * 快手订单确认收货
     * @author jitwxs
     * @date 2021/11/29 10:25
     * @param ksOrderSettledDto
     * @return com.uzai.console.common.UzaiRespVo<java.lang.Boolean>
     */
    @PostMapping("/settled/ks/order")
    UzaiRespVo<Object> settled(@RequestBody KsOrderSettledDto ksOrderSettledDto);

    /**
     * 快手订单解冻
     * @author jitwxs
     * @date 2021/11/29 10:26
     * @param ksOrderUnfreezeDto
     * @return com.uzai.console.common.UzaiRespVo<java.lang.Boolean>
     */
    @PostMapping("/unfreeze/ks/sync")
    UzaiRespVo<Object> unfreeze(@RequestBody KsOrderUnfreezeDto ksOrderUnfreezeDto);

    /**
     * 快手订单解绑用户
     * @author jitwxs
     * @date 2021/11/29 10:26
     * @param ksOrderUnbindDto
     * @return com.uzai.console.common.UzaiRespVo<java.lang.Boolean>
     */
    @PostMapping("/unbind/ks/sync")
    UzaiRespVo<Object> unbind(@RequestBody KsOrderUnbindDto ksOrderUnbindDto);

    /**
     * 快手订单绑定用户
     * @author jitwxs
     * @date 2021/11/29 10:26
     * @param ksOrderBindDto
     * @return com.uzai.console.common.UzaiRespVo<java.lang.Boolean>
     */
    @PostMapping("/bind/ks/async")
    UzaiRespVo<Object> bind(@RequestBody KsOrderBindDto ksOrderBindDto);

    /**
     * 快手订单(共享联盟推老板)拉取接口
     * @author jitwxs
     * @date 2021/11/29 10:26
     * @param ksOrderPullDto
     * @return com.uzai.console.common.UzaiRespVo<java.lang.Boolean>
     */
    @PostMapping("/pull/tlbks/orderByToken")
    UzaiRespVo<Boolean> pull(@RequestBody KsOrderPullDto ksOrderPullDto);

    /**
     * 快手订单(自营联盟)拉取接口
     * @author jitwxs
     * @date 2021/11/29 10:26
     * @param ksOrderPrvPullDto
     * @return com.uzai.console.common.UzaiRespVo<java.lang.Boolean>
     */
    @PostMapping("/ks/order/download/prv")
    UzaiRespVo<Boolean> prvPull(@RequestBody KsOrderPrvPullDto ksOrderPrvPullDto);
}
